package com.newray.base.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.googlecode.genericdao.dao.hibernate.GenericDAO;
import com.newray.base.service.GenericCRUDService;
import com.newray.base.spring.SpringContextHolder;

@Service("genericService")
@Transactional
public class GenericCRUDServiceImpl implements GenericCRUDService {

	@Override
	public GenericDAO<?, ?> getGenericDAO(String beanID) {
		return SpringContextHolder.getBean(beanID, GenericDAO.class);
	}
}
